﻿using System;
using System.Windows.Forms;
using Styx.Common;

namespace RestoArenaHelper
{
    public partial class newRestoArenaHelperConfig : Form
    {
        public newRestoArenaHelperConfig()
        {
            InitializeComponent();
        }

        private void newRestoArenaHelperConfigSettings_Load(object sender, EventArgs e)
        {
            numericUpDown1.Value = RestoArenaHelperSettings.Instance.PveRejuvenationHealth;
        }

        private void numericUpDown1_ValueChanged(object sender, EventArgs e)
        {
            RestoArenaHelperSettings.Instance.PveRejuvenationHealth = (int) numericUpDown1.Value;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            RestoArenaHelperSettings.Instance.Save();
            Logging.Write("Config saved!");
            Close();
        }
    }
}
